Fix bugs. Now the numberic results are correct.