[Olena-patches] milena r1662: Fix bug in extract_character