bugfix:closeframe but contents is empty