Corrected bug with del state