fixed the major bug in the numeric profile calculation, came across while testing.