Pass isSlave correctly from worker