Fix parseInt in map

Apologies, I just realised that the `parseInt` wasn't working properly because the array index was being passed as the radix param! This should fix the ordering.