State file not removed