Fixed the error with loops