fix bug,add assert