fix working directory issue