Bugfix  enddir service.