fix some issues with delayed jobs queries