fixed getProperty method