fix bug in base64 send to back-end