fix parameters check in Service class