Bugfix for create object