Fix obvious bug in numLoaded check.