crash was due to an unintialized variable, which caused the wrong bluring format to be used and caused a memory overrrun.