Fixed a bug in the sample service.