Added missing branches in viewload() to fix all the compilation errors.