Fixed marsheling errors which were causing the program to crash when run
in parrallel