Some changes with profiler
Fixed crash bug