changed error in notes model