fixed canvas sometimes not opening when clicked on