fix bug in repeat tags in left position