Fixed my loops