bugfix at visit/order