Fix for multiple directions
Merge branch 'master' of https://github.com/revoltek/losoto