fix some exceptions caught by analytics