Assert on range error.