Prevent rare occurrence OutOfBoundException