fix edit work order crash