Fixed a bug where i was running a job that should be submitted, resulting in a dead lock