fix btInMemorySerializer