Prevent inc modules from becoming unknown after a count reset.

(cherry picked from commit 6cfd5dc5b56ae6f77e26eda88cfc2dc1110894d9)