fix rtl file_sink bug