resolve indexoutofbound on Nodenominator