fix filter value writing