Fixing jackson serialization