major bug fix for note checking