corrected deck_id assignment