Fix copen and styles