Avoid nil error in iterations endpoint