Fixed copy paste error CID18076
Fixed unused value CID18373
Fixed Logically dead code CID18084
Fix Logically dead code CID18088