Fixed an assert that could have a valid case.