Fixes registration of service endpoints

resolves #111