fix single mode crash