Trying to restore last state