fix bug returning proper workers count