fix tablenames