fix variablemodel