fix parsing bug when square-bracket is nested