fix error raised on non-error case
fix version not inserted at correct location in deict