fix handling of xcf cfg variable to correctly set xcnt instead of xcf