Repair some bugs.

Repair the bug that always return the last bundle information to cover
the all other bundle information.