Fixed out of range error.