bug removal of double red cycle at beginning