Fixed Out of Bound exception in the negative