Memory Effects in Irreversible Thermodynamics: Corrected Derivation of Transport Equations