[FIX] Crash when [locations count] == 1
Merge pull request #1 from micazeve/master

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