Recreating canvas object to fix button state