fixed bug in updateProperties