bug in getSoldAppartments fixed