fixing really stupid logic error in note model (oops)