Added "if !input" checks to some filters