Fixes Scope to apply class metadata properly. Related to #216