Why is the program executing a cancel command when I try to click on an object, line, or block?