Acc curr_id not defined bug