Weird Delay Before Headbob stops

Hi.
When i use a Headbob on my Character it works fine when hes Walking but when i stop Walking theres a weird delay before the Camera Shake stops. How can I solve this?

Thank you for helping.