fixed corrupted Base64 decoding