Changed conditional statement for parse_query filter.