Fix some nesting errors with :inherit