File ends with no newline character and fix code