In the nextpage function, I found a line of code that is causing an issue when submiting the form from the last page.
The curpage variable (that is currently a int. var.) receives the object array settings.pages.
After this the navigation stops working.
if (curpage > settings.pages.length) {
// submit!
$(this).submit();
curpage = settings.pages;
return false;
}