Comment 10 for bug 310351

Created attachment 111737
Patch to fix this bug

This patch fixes the bug. It necessitates a helper Perl script.