Fixes a little bug to performs well test 9, but now test 24 fails
Merge pull request #17 from griera/master

Fixes a little bug to performs well test 9, but now test 24 fails