Removing NaN from profiling