Fix issue detected by static analysis tool