Correct some bugs with negation and object.