fix bug that extraction