Fix on resizing canvas on Windows (canvas was not resizing propelly)