fixed compatibility for resque 2