cal loop fix