fix bug about assert failed.