Fixed display of "undefined"