Fix bug in file stream start