fixed a bug where the was a mutex in a conditional that wasn't freed in the startJob function