Fix bug for add command where date not registered