fix for missing endif