Fixed null comparison