Fixed a bug in filtering exclude and include params