fix coverity's issue