fixing nil error in job index page