corrected a 1-off bug
Merge pull request #370 from igal-getrailo/improve-025

corrected a 1-off bug