Fixes an issue in get_runs()

[skip ci]