Fix offline support

Before offline support would fail because rep was not instantiated.