Fix for issue #35

See https://github.com/coreyoconnor/vty/issues/35