Variables ordering problem solved