 editAnnotation = (region) ->
   form = document.forms.edit
   form.classList.remove 'hide'
-  form.elements.start.value = round100(region.start)
-  form.elements.end.value = round100(region.end)
+  form.elements.start.value = round1000(region.start)
+  form.elements.end.value = round1000(region.end)
   form.elements.note.value = region.data.note or ''
   if region.data.type == 'segment'
     form.elements.note.setAttribute('disabled', 'disabled')

      wavesurfer.regions.list[regionsArray()[1].region_id].update(start: 0)
    else
      # set prev's end as this end
      replacer = (region for region_id, region of wavesurfer.regions.list when round100(region.end) == round100(deleteCandidate.start))[0]
      wavesurfer.regions.list[replacer.id].update(end: deleteCandidate.end)
  if regionId
    wavesurfer.regions.list[regionId].remove()

    if localStorage.regions && JSON.parse(localStorage.regions).length > 0
      loadRegions JSON.parse(localStorage.regions)
    else
      wavesurfer.addRegion(start: 0, end: round1000(wavesurfer.getDuration()), drag: false, resize: false, data: { type: 'segment' })
      saveRegions()
    return

