dirty fix of extra 'undefined'