fixed wrong error handling for single coordinate
Merge branch 'master' into dev