fix for FX-141. extract_element was reworked