Fixed messagePopPred function.