off-canvas bug fix