Bug fix

Fixed: In some cases where semicolons were missing.