Fixed setting inheritance and developed Scope#apply