Fixed switch workspace bug.