Remove a loop that was not necessary