fixing service registry getInstance