fixed pop deletion