Fixing a used-before-defined error.