Fixed a minor bug in the user and note models.