fixing location problems