Fix for location field auto-improve error, fixes #188