update copyright info
fix a possible exception