fixed deletion-bug