Fixes bug report #007981.

Signed-off-by: Mauro Di Girolamo <maurodigirolamo@web.de>