Save repo type in the annotation.
Avoid division by zero.