Fix UnusedLocalVariable violation