Fixed issue #13, was due to broken implementation of `toSource`