Fixed a bug with loading properties