handle incorrect locations properly