fixed wrong variable name in sleep filter

wrong variable name leads to exceptions when using the sleep filter with
replay option
Merge pull request #548 from ManuelRauber/master

Sleep filter throws exception when using replay option