Fix typo.

Stupid mistake, and exception handling hid the error.