fix raw mode