fix the warning in Views.cpp