Fix folder filtering