Fixed IndexOutOfBoundsException

:+1: