fix reflection serialization