Fix cycle return value