Fixed the bugs in btas_contract_jobs, now contract function works correctly