fixing ip filtering bug