Fixed createObject