table orders bug fixed