Fixed bugs with applyfilter button.