Fix isNew bug