Right check at the deletion process (see #23)

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>