null compare fix