Attempting to fix delex func