Fixing a midding variable