Fix loading view bug.