fix for cycle error