Small bugfix in k_order_pert and check for stale order loglinear