The following Python program should print the sum of all the even numbers from 0 to 10 (0, 2, 4, 6, 8, 10), but it has two bugs:

x = 0
sum = 0
while x < 10:
sum = sum + x
x = x + 1
print(sum)

Write a sentence or two explaining what the errors are and how to fix them.