Workaround to correct the error message "TypeError: Cannot read property listFields/labels of undefined"