Bugs in error handling.