fix parsing error caused by square brackets