Fixed false errors for cycles