fix x and X commands