Fix stack trace in master scheduler