fix incorrect result