fixed base64 data method