fixing bug in orderupdate