gmc: minor fix - removed count in while