Fix warning when order is not set