[fix] an undefined var exception when double clicking on canvas