Attached a patch with the fix.