Fixed error in service script