Fix for empty files