fix the type error in service section