Fixed a variable being unnecessarily visible