Changed

function formfilter_ui_form_alter(&$form, &$form_state, $form_id) {

to

function formfilter_ui_form_alter(&$form, $form_state, $form_id) {

... which is the usual quickfix for this, but can have unexpected results.

Please review and tell us if the module should behave as expected if corrected this way.