[core] fix unnoticed bug: getCleanText