fixed deletion error