Fix dialog next line state saving