Fixed a scope processing