Fix properties file access bug