Move #rep to correct location.