fix bug that contains extension