Fixed an issue detected by Code Analysis