Thanks niko at neagee.net for the report and Emil Stenstrom for the patch. Backport of e0363c68 from master.