fix for the new location method