Fix bug field conversion in webservice, fix printing it out in demo script