Fixed bugs related to transformation engines