Fixes issue with marking indexable state on bean creation