Fix another use of className that could cause init order issues

@mbuchetics Can you test this and see if it does fix your issue?

@alazier