fixed off canvas null addEventListener