fix double free on SelectManager destructor
reset buffer size on Serializer when clear is call