Recognise locations in the hash correctly