Fix issue with NULL processing in main5