Fix coverity defect 24647