Fix bug:crash when change the view mode

comment the assert code.