bug in extract