Attempt to fix some exceptions.