fixed bug with submit form without attachments