fixed issue in service script