Fix issue with loading invalid reps on linux