Fix deleting wrong key