Trying to fix cancelXray