fix base64 onload