fixed: if text is NULL