Fix getting table attributes