Fixes resource checking in get_work