fix for missing last EOL issue