fix % to EOF error.