fixed bug submit