Fix bad error nesting