Fixed flipping of labels when only one tick left
Made minimum number of ticks 3