Fix alert treshold bug in check edit form

Closes #92