fixed bug in color map access which happened when accessing the last element