fixed selection of colour from map, was using index instead of value(index)