Fixed race condition in wic_percentage_change event callback