fixing multiple deletion bug

Signed-off-by: Ondrej Koch <o.koch@zerusnet.com>