re #906 - resolving undefined index error