Eliminate double popping.
Fix condition of missing table.