Fixed scope error