fixed container detect in "dialog"