fix get all orders bug