fix a bug that modified expandos are cleard when profiling is started or stopped