Fix isNew determination logic