Fix for editing locations