fixed bug for del method in the localStorage implementation