Fixed parser size checks for metrics

Fixed parser size checks for metrics