Fixed small scope issue