Workaround for undefined index: last_order_id