fixed scope error.