Fix the vessel-hang-at-Ap bug.