fixed bug in Bean and TableBean