bugfix in repos endpoint to prevent undefined errors