Fixed defect detected by static analysis tool