Fixed an assert problem