fixe bug for wrong results