Fixed it... For anyone in the same situation here is how i have fixed it;

In the loop-job.php I have done the following modification...

<?php
global...