Fix loadProperties