Issue #22 handle case of generation 99999 going to 00000