fixed name property bug on objects