Fix some issues related with FormData submit