Fixing warning because of unknown variable