fix bug with base64 data