fixed the problem that the view wasn't properly shown.