Minor fixing in order to avoid unnecessary worker function hash table lookups.