Fixed division by zero error in profile.