Fix scope problem #6