fixed js error in services