Fixing an issue pointed out by analyzer