workers count logic fix