fixed bug with gui reacting to a cycle