fix issues with delayed job