Issue with losing selected order data when executing script