fixing glitch with 'undefined'