make sure booleans are booleans and fix filter dependency