Comment 18 for bug 511942

Here is a patch that should fix the problem. It fixes the non-working profiles as well (a one-liner).