fix to #1401 "add task to empty list"