fix single file bug