Fix scope error