Fix new object bug