Fixed crashes on multiple selection