Fixed an error that caused VarExps not to be replaced properly.