Fixing a bug in Sessionization MR code