Fix type error to make sink::file_t work