Comment 1 for bug 782431

the code at the end of bug report is meant to be the fix for it