Fix non-existent variable in RepWrapper