Fix:innerHTML undefined error