fix hasnewnote logic