Fix some bugs in object