Fix a bug on the return value of raw mode.