Fix "Use of uninitialized value $mode"

Created by  Eelco Dolstra  on October 9, 2015
TUMFOKWNUIPBUIO6OHOO2BUKIUFDZVG635VU6HUUXBRUQO4E5X6AC
Change contents