fixed missing directory change