fix error in service callback