trying to correct a null error Will spotted