fix table building in preferences window