Fixed illegal offset type error caused by invalid view.