Fixed little bug that prevented the last location to be selected
Changed list of locations to an array (was a map)