fix bug that causes form submissions to fail when using the pageid method