Fixed notes type-checking.