fixed behaviour of the form when a property is deleted