fix a bug in exercise 2.38