fix(service): changing how to convert to int