Fix for #103 reverse-scaffold is broken since 1.0.4

I'd like to fix this issue as soon as possible. Would you review this? @gakuzzzz