fix bug in bracket with unnecessary semicolon