Fix double usage of same variable name

Signed-off-by: Anton Kolesov <akolesov@synopsys.com>
(cherry picked from commit 70e9b9a8e5a45e00b20a6bab84dea77b025d6699)