avoid losing money selling a home