fixed a bug in extension handling

--HG--
branch : trunk
6 files changed