cycles bug fixed