fixed square bracket bug