fix a bug in cc.view