Permanently fixed looping error