Fix isNew checking