fixed deletion issue