Fix stem exception counting.