fixed issue #211

Please review my change. Changes worked for me.