Prevent a double delete order.

see #482