Fixes one bug. Might still need to check something else.
Added extra debugging for running jobs problem.

Signed-off-by: Michel <info@1st-setup.nl>