fixed write bug for fast files