fixed innerHTML problem