Debugger: fixed missing $mailer after reference is created