Fixing activity mode in prediction.