Fix issues with IMs.