fix for decoding in service.py