s4:registry: Fix size type and loop