fix bug with adding first entry

NULL is bad thing