Fix warning for out of bounds