fix isNewProfile medthod