Fix cycle

Thanks @morlay