Idle and engine braking

Hello, what would be correct way to deal with idle and engine braking.
My engine braking in natural/gear is 22kpa even at 1000rpm
if i set idle on if map over 20kpa, it will fix my idle stalling problem, but when im in gear and im decelerating idle control will be on, how you guys deal with-it?