Comment 2 for bug 1246245

Thanks Goldhead.
Your patch works perfectly.