Fix missing vars in repetition change operation