added workaround for bedextract & nested elements