fixed issue with editing a homes query