fix for empty files