Fix notice undefined index

When no order is specified