fix available resource count