Fix default style IndexOutOfBound exception