alt, title "undefined" fix