Fix join problem under windows.