fix for document-service not starting right