fixed lib base64 bug