Fix the znc state context