Corrected NULL to None