Fixes filter query for peer