fixed syntax error in notes controller