Fixed wrong base64 function