Bug fixed, but accuracy should be improved.