fixed profiling error