Correcting bug in tables