Fixed serialize bug

Add encode to base64 a serialized string of the compiled fields and set