Bugs in Notes.php

In getting the most recent note.