Fix parsing of character ']'