fixed small bug in properties_to_hash
fixed small bug in properties_to_hash