Fixed issues previously discussed

Dear Sir/Madam,

Can one gatekeeper review this patch?

Regards