Fixed closing of inner frames when loaded in normal state