Fix for issue #9

This should fix bug reported here https://github.com/willcosgrove/cartman/issues/9