Fixed service registration bug