fix Recurrent bug