small fix

prevent out of bound notice messages that could print out in some cases