Fix for restore previous canvas