Prevent range error.