fixed bug when sending FormData data