Fixed a scope error