Fix issue sending the emails after order completion