Fix filter in Queries page