Fixed some bugs related to postObject.