fix custom service definition