Fix for number of ticks bigger than number of values