Fixed extract script.