fixed script when no filter is posted