repair plugin to support repeat setting