Fixing nested extensions