Fixed issue: colors were not updated in dynamic tables if repeatheadings was disabled
Dev: separated updateHeadings into updateHeadings and updateColors, the latter is called even if repeatheadings is 0