fix issue with purge time not being passed correctly