fixed DIR issue