fix the view issue