fix last cycle