fix put and delete errors