fix a bug in order action handling