fixed collision with canvas