Plasma d. is one of the key quantities that need to be controlled in real-time as it scales directly with fusion power and, if left uncontrolled, d. limits can be reached leading to a disruption.On ASDEX Upgrade (AUG), the real-time measurements are the line-integrated d., measured by the interferometers, and the average d. derived from the bremsstrahlung measured by spectroscopy.For control, these measurements are used to reconstruct the radial d. profile using an extended Kalman filter (EKF).However, in discharges where ion cyclotron resonance heating (ICRH) is used, the measurements from the interferometers are corrupted and the reconstructed d. is false.In this paper, the existing EKF implementation is improved, implemented and exptl. verified on AUG.The new EKF includes a new particle transport model in the prediction model RAPDENS as well as a new representation of ionization and recombination.Furthermore, an algorithm was introduced that is capable of detecting the corrupt diagnostics; this algorithm is based on the rate of change of the innovation residual.The changes to the RAPDENS observer resulted in better d. reconstruction in ICRH discharges where corrupt measurement occur.The new version has been implemented on the real-time control system at AUG and functions properly in ICRH discharges.