Hello.

I propose the attached patch to fix this problem.

Best regards,
Mauro.