fix apply view error