Fixed another bug in A star.