fix compute and compare result bug