fixed working directory issue