[FIX] Crash when [locations count] == 1