trying to fix extract error