fixed error in service script