Fix form errors on spent time dialog.