Fix port filtering