Fixed the cwd changed problem again.