fix bug with property type conversion