Offset Coverity defects fixed