Fixed missing open state removal
Reset main to default