fixed minor issue in script searching for broken profiles
fixed a few profiling errors