Fixed a bug with the partitioning of the email workers