Fixed issue that prevented submit redirect from working properly