Fix to profile error message reporting