fixed bug where left and right where swapped when assigning double xe