fix for file buffer