fix the missing profilingMode bug.