Fixed bug in runtime scraping, that was introduced by renaming the agent

class.