fixed bug in fallback to legacy
Merge pull request #25 from badrock/devel

fixed bug in fallback to legacy