fix clicking (reverse loops order)