Fixed bugs in submit.ftl of pbs backend