bugfix of adding orders to non-existing tables, and wrong order shown