Fixes for empty files.