Fix fatal warning in the init handler.