fixed wrong variable name in sleep filter

wrong variable name leads to exceptions when using the sleep filter with
replay option