Fix empty file after preprocessing