Fixed double clicking on canvas