List out of bounds fix