fixed a bug on the change implementation of service.