fix: view undefined error