fixed profiling error
Merge pull request #339 from kirk24788/master

Profiling error