Store metadata when changing name or date
Fix Exception when deleting last date