FIX: Incorrect calculation of remaining available jobs in buildings.