view.js fix