Change equals method in MonitorQuery