Resolves Ruby syntax warning

Resolves a Ruby syntax warning for variable reuse