fix "INVALID_ACCESS_ERR: DOM Exception 15"