fixed mistake in get_runs() where function returned None