bugfix: clicking submit only submits once