# Wrong factorization of expressions containing exponentials ?

Is there something wrong with the factorization of expressions containing exponentials ?
I obtain the following strange results (Sagemath 8.6):

`factor(exp(-x)+2*exp(x))`

---> `3*e^x`

,

`factor(exp(-x)+x*exp(-x))`

---> `(x + 1)*e^x`

Any suggestions welcomed.