Remove buf_file require to avoid calling  nil situation