fixed detection which type of item was delete for logging