fix too deep stack level because of percent symbol loop