Fixed pretty_properties() function