small fix for innerHTML element upgrade loop