fix exit preivew