Fix creation of new objects