Fixed bug with transformed variables