fixed resetting the canvas zindex