fixes issue #125

If there is a better suggested fix let me know and I can code it.