out of bounds fix