Update serialize_buffer.hpp

Bug fix