Applied a patch that was merged upstream. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>