Fixed 1-based indexation bug
Merge pull request #756 from stefk/tool-fix

Fixed 1-based indexation bug