Fix dialog annotation bug