same fix as previous commit, but for nth. #626