fixed bug when coercing object properties