fixed major bug with metrics (thx to nightfox696)