fix bug in service