fix last mode