fixed bug that lead new todos to equal null.