fix backward compat
Merge pull request #213 from byronyi/master

fix backward compat