Fixed a bug with note legality checkin.