fix checking for Note type