Fixed bug with extraction.