fixed 2 bugs, one with note query and another with meta query