Oops, you are right the legend infos are cached at the client side once the first query has been done.
I guess it's a bug we need to fix in a future version.
I'll try to find a workaround and let you know:confused: (at least the creation of a new layer should work. OK it's awful, I agree)