All details of run. program logs in there friendpastes
http://friendpaste.com/dm57auMvT2qnMWpi1LzRQ first log
changed to integer_to_list(length(BodyRep)) no difference in result
http://friendpaste.com/ngIOzEDZypZsiHYSFv8MD after change to length as string
All details of run. program logs in there friendpastes