Solved seg. fault in gui while changing between characters models.