fix bug on xo.view.js