Fix an issue during checking whether the tank reaches the boundary