Remove invalid locations