fix bug on object placement demo