fix object to null comparison