temporary nth bug fix