fix error in quantity of registers verification