Fix delete errors