Fixing gibbon simulation code.