Fixed location error
Merge pull request #73 from tomdepplito/fix_algorithm_error

Fixed location error