fixed bug in post submit error