Correcting tables creation