[5.0.49][core] fix ArrayOutOfBoundException in Filter