fix for null notecount
typo
typo
typo
typo
fix nan error