Fixes notice for missing term ids