Fixing undefined values in table cols