Fixed crashes on chat migration