Fixed Out of Bound Range Bug