Fix bug in while loop, when printing the extended warranties ticket