Fix the bug with delete saved states