fix unexpected token ]