Fixed an out bounds error