fix conversion from old variables
Merge pull request #33 from rhysd/fix/old_variables_conversion

Fixed conversion from old variables