off-canvas bug fix.