Fixed CWD changing.