Wrong Location response format

This release fixes a bug where under some circumstances a location field is not returned in the correct format.