use cc.VisibleRect instead of VisibleRect