lya: bugfix in apply/filter funcs