Fixes duplicated avatars in contact list and chat window.