Added fix for schedulers contained in deity classes.