Fixed error in interactive/regenerate. Issue #169