Fix metric script bug.

Signed-off-by: David Carlos <ddavidcarlos1392@gmail.com>