fixes spawning too many workers

prevents orphaned_count from being negative resulting spawning too many workers.