Fixed scope error

This error was causing me problems, so, I fixed it. Shouldn't affect functionality at all.