Fix bug with character update through API

Thanks to Dennovin for spotting this