fix getPropertyMap code (it always return null)