fix openmode