fixed [] bug