Correct the bug that throws an error when clicking "open in separate window" (Error 50).