fix extract errors