fix working directory problem