Fix cc.visibleRect calculation