Scope warning fixed