Fixes a potential infinite loop at startup.