fixed bug of submit