bugfix for missing constants if cache gets filled pre-autoloading