Fix a crash as pointed out in FS#129