Fix a potential assertion failure error.