fixed double extension bug