Fixed minor bug in loadProperties method