fixed bug with current_section==None