fix possible exception