Fix overflow error

I was getting overflow errors using the version found here before.

This adjustment based on http://compatibility.shwups-cms.ch/?cmspid=129&&id=79 fixes the problem for me.