Applied Patch for "}"

Implimented http://mantis.aurora-sim.org/view.php?id=1347 the patch provided