Fix maininterface