Fix problem creating new objects