fix bug in service controller