Thanks to Jeremy Sowden for sending the patch to the mailing list. Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>