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