Fix for issue 154

Pull Request for https://github.com/peej/tonic/issues/154