fix issue where filter could strip out $ keys