fixed bag bug