fix a bug on cc.view.