fix working directory regression