fixed extended_modules bug