add missing semicolon and tidy up mixed spaces.