fixed bug with del