Fixed bug when looking for previous notes