Fix filter option when passing an array of attributes.