Fix issue that detected by static analysis tool