bug when clicking outside canvas