Fix BufferOverflowException on AnnotatedCompositeSerializer

another try :)