fix raw mode selection