Fixed bug wit hprof integration