Fixed incorrect deletion