fixed bug in Variable transformation which resulted in information loss
reverted change on CheckVariables