fix bucket selection

fix pointer handling in the containers.
Merge pull request #116 from iHiroakiKawai/bucket_select

fix bucket selection