fixed bug in transformation to DESMO-J.