fixed some fields in tables