bug fix on char ]