fix setAnchorByPercent method