fix max public message id filter bug