fix wrong submit before