fixed a bug where filter and editting a note could not work simultaneously