Fix views error.
Merge pull request #4178 from openscholar/4168

Fix views warnings.