I am pasting legendware and trying to fix it. but in specifically this function this keeps returning NULL. Does anyone know why?