fixed missing NULL