bugfix: add missing validation of location