remove queries not working