Fix for issue #4

Tested, seems to work fine!