Fix problem with ceating new objects